﻿using CL_VisionCommu_Test.Helper;
using Prism.Mvvm;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using static CL_VisionCommu_Test.Helper.Helper;

namespace CL_VisionCommu_Test.Models
{
    public class MainWindowModel:BindableBase
    {
        private List<Helper.Helper.RunState> runStates;

        public List<Helper.Helper.RunState> RunStates
        {
            get { return runStates; }
            set { SetProperty(ref runStates, value); }
        }

        private List<Helper.Helper.ResultState> resultStates;

        public List<Helper.Helper.ResultState> ResultStates
        {
            get { return resultStates; }
            set { SetProperty(ref resultStates, value); }
        }

        private List<Helper.Helper.OperationMode> operationModes;

        public List<Helper.Helper.OperationMode> OperationModes
        {
            get { return operationModes; }
            set { SetProperty( ref operationModes, value); }
        }

        private List<Helper.Helper.AliveState> aliveState;

        public List<Helper.Helper.AliveState> AliveState
        {
            get { return aliveState; }
            set { SetProperty(ref aliveState,value); }
        }

        private Helper.Helper.RunMode runMode;

        public Helper.Helper.RunMode RunModel
        {
            get { return runMode; }
            set { SetProperty(ref runMode,value); }
        }
      
        /// <summary>
        /// ctor
        /// </summary>
        public MainWindowModel()
        {
            RunStates = EnumHelper<Helper.Helper.RunState>.ToList();
            ResultStates=EnumHelper<Helper.Helper.ResultState>.ToList();
            OperationModes=EnumHelper<Helper.Helper.OperationMode>.ToList();
            AliveState=EnumHelper<Helper.Helper.AliveState>.ToList();

        }
    }
}
